#include<stdio.h>
int main (void)
{
	int i,j,x,t;
	int a[20];
	printf("Please input a number:");
	scanf ("%d",&x);
	for (i=0;i<x;i++)
		scanf("%d",&a[i]);
	for (i=0;i<x;i++){
		for (j=0;j<x-1-i;j++)
			if (a[j]<a[j+1]){
				t=a[j];
				a[j]=a[j+1];
				a[j+1]=t;
			}
	}
	for (i=0;i<x;i++)
		printf("%6d",a[i]);
	printf ("\n");
	return 0;
}